<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.siloam.module.User" %>
<%
	String groupId = request.getParameter("id");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../jeasyui/themes/gray/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../jeasyui/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../../css/manager.css" />

<script type="text/javascript" src="../../jeasyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../jeasyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../jeasyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../js/win.js"></script>
<title>人员管理</title>
<script type="text/javascript">
	function setMemberType(id, type){
		doGetAction("#dg","group.do?method=setMemberType&id="+id+"&type="+type);
	}

	function searchUserToAdd(){
		openUrl("增加组员", 400, 400, "../user/searchUserForGroup.jsp?groupId=<%=groupId%>", closeAddWin);
	}

	function closeAddWin(){
		$("#dg").datagrid("reload");
	}
	
	function deleteGroupUsers(){
		checkSelectSomeDoAction("#dg", "删除", "小组成员", "group.do?method=deleteGroupUsers", true);
	}
</script>
</head>
<body>
<div class="dg-content">
	<table id="dg" class="easyui-datagrid" title="小组人员"
		data-options="rownumbers:true,pagination:false,toolbar:'#tb',
			fitColumns:true,iconCls:'icon-users',url:'group.do?method=listGroupUser&groupId=<%=groupId %>'">
		<thead>
			<tr>
				<th data-options="field:'ck',checkbox:true"></th>
				<th data-options="field:'id',hidden:true"></th>
				<th data-options="field:'name',width:100,align:'center'">姓名</th>
				<th data-options="field:'status',width:60,align:'center'">状态</th>
				<th data-options="field:'memberType',width:60,align:'center'">类型</th>
				<th data-options="field:'opt',width:60,align:'center'">操作</th>
			</tr>
		</thead>
	</table>
	<div id="tb">
		<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true"
			onclick="searchUserToAdd()">新增</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true"
			onclick="deleteGroupUsers()">删除</a>
	</div>
</div>
</body>
</html>